import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import LoginView from '@/views/LoginView.vue'

Vue.use(VueRouter)

const routes = [{
		path: '/home',
		name: 'home',
		component: HomeView
	},
	{
		path: '/',
		name: 'login',
		component: LoginView
	}
	// {
	// 	path: '/login',
	// 	name: 'login',
	// 	component: () => import( /* webpackChunkName: "about" */ '../views/LoginView.vue')
	// }
]

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes
})

export default router
